<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<title>管理中心</title>
<script type="text/javascript" src="scripts/jquery.js"></script>
</head>
<body>
<!--{include file="top.htm"}-->
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td width="150" valign="top"><!--{include file="left.htm"}--></td>
<td valign="top">
<div class='title'>
<a href="?action=content&do=channel_list">评论列表</a>
&raquo;&nbsp;编辑评论

</div>
<div class='item'>
	<table width="100%">
	<form action="?action=content&do=comment_<!--{$mode}-->" method="post" enctype="multipart/form-data">
		<tr>
		<td align="right" width="80" valign="top">&nbsp;</td>
		<td><a href="content.php?id=<!--{$comment.content_id}-->" target="_blank"><!--{$comment.content_title|escape:html}--></a></td>
		</tr>
		<tr>
		<td align="right" width="80" valign="top">内容标题：</td>
		<td><textarea name="comment_content" cols="50" rows="5" class="textarea"><!--{$comment.content|escape:html}--></textarea></td>
		</tr>

		<tr>
		<td align="right" valign="top">评论回复：</td>
		<td><textarea name="comment_reply" cols="50" rows="5" class="textarea"><!--{$comment.reply|escape:html}--></textarea></td>
		</tr>


		<tr>
		<td align="right" height="30">评论者IP：</td>
		<td><!--{$comment.ip}-->(<!--{$comment.ip_address}-->)</td>
		</tr>	

		<tr>
		<td align="right" height="30">评论时间：</td>
		<td><!--{$comment.time}--></td>
		</tr>	
		<tr>
		<td align="right" height="30">评论状态：</td>
		<td>
		<label><input type="radio" name="comment_state" value="1" {if $comment.state==1}checked{/if} /> 正常</label>
		<label><input type="radio" name="comment_state" value="0" {if $comment.state==0}checked{/if} /> 锁定</label>
		</td>
		</tr>	

		<tr>
		<td align="right" height="30">&nbsp;</td>
		<td>
		<input type="submit" value="提交" class="button"/>
		</td>
		</tr>
		<input type="hidden" name="comment_id" value="<!--{$comment.id}-->"/>
		<input type="hidden" name="content_id" value="<!--{$comment.content_id}-->"/>
	</form>
	</table>

<table cellspacing="0" cellpadding="0" width="100%">
	<form action="?action=content&do=comment_delete&content_id=<!--{$smarty.request.content_id}-->" method="post" name="comment_list">
	<!--{foreach from=$comment_list item=comment}-->
	<tr>
	<td height="30" width="5%" align="center"><input type="checkbox" name="comment_id[]" value="<!--{$comment.id}-->" /></td>
	<td>
<!--{if $comment.photo}-->
<img src="uploads/<!--{$comment.photo}-->" style="border:1px solid #eee;padding:1px;width:20px;height:20px;" align="absmiddle"/>
<!--{/if}-->
	<a href="?action=content&do=comment_edit&content_id=<!--{$comment.content_id}-->&comment_id=<!--{$comment.id}-->"><!--{$comment.content}--></a>
<!--{if $comment.reply}-->
<b style="color:#FE8217">[已回复]</b>
<!--{/if}-->
	</td>
	<td  width="15%" align="center"><!--{$comment.time}--></td>
	</tr>
	<tr><td height="1" bgcolor="#eeeeee" colspan="3"></td></tr>
	<!--{/foreach}-->
	</form>
	<!--{if $comment_list}-->
	<tr>
	<td height="30" width="5%" align="center"><input type="checkbox" onclick="batch('comment_list',this)"  /></td>
	<td colspan="2">
	<table width="100%">
	<tr>
	<td width="100">
	<select onchange="batch_do('comment_list',this.options[this.selectedIndex].value)">
	<option>请选择...</option>
	<option value="delete">删除选中评论</option>
	</select>
	</td>
 
	</tr></table>
	</td>
	</tr>
	<!--{/if}-->
	</form>
</table>
</div>
</td>
</tr>
</table>
</body>
</html>